import {request} from 'umi';
import {modulesUrl} from "@/assets/constant/modulesUrl";
import {getApiPrefix} from "@/assets/utils/utils";
import {TableConfig} from "@/pages/report/TableConfigList/data";

/**
 * 测试数据源
 * @param params
 */
export async function getColumnList(tableConfig?: TableConfig) {
  return request(getApiPrefix(modulesUrl.reportTableConfig) + "/getColumnList", {
    method: 'POST',
    data: {
      ...tableConfig,
    },
  });
}
